package service.impl;

import java.util.List;

import dao.StudentDao;
import dao.impl.StudentDaoimp;
import entity.Student;
import service.StudentService;

/*
 * 
 *
 * @ class description：操作学生
 *
 */
public class StudentServiceimp implements StudentService{
	private StudentDao studentDao = null;
	
	public StudentServiceimp(){
		studentDao = new StudentDaoimp();
	}

	@Override
	//获取所有学生信息
	public List<Student> getAllStudent() {
		return studentDao.getAllStudent();
	}

	@Override
	//获取指定学生信息
	public Student getStudentMoreInfo(Student student) {
		return studentDao.getStudentMoreInfo(student);
	}


	
	//查找有没有指定的学生
	public boolean findStudent(Student student){
		return studentDao.findStudent(student);
				
	}

}


